/**
*This is the Encapsulation test class. It is use just to set and get the value.
*/
public class EncapsulationTest{

	private String name;
	
	private String idNum;

	private String addr;

	private int age;

	private int m1;

	private int m2;

	private int m3;

	private int totle;

	private  float avg;

	//Geting and setting the age
	public int getAge()
	{
		return age;
   	}
	
	public void setAge( int newAge)
	{	
	      age = newAge;
   	}
	//Geting and setting the marks 1
	public int getM1()
	{
		return m1;
   	}

	public void setM1( int newM1)
	{	
	      m1 = newM1;
   	}
	//Geting and setting the marks 2
	public int getM2()
	{
		return m2;
   	}
	public void setM2( int newM2)
	{	
	      m2 = newM2;
   	}
	//Geting and setting the marks 2
	public int getM3()
	{
		return m3;
   	}
	public void setM3( int newM3)
	{	
	      m3 = newM3;
   	}
	//Geting and setting the name
        public String getName()
	{
	      return name;
        }
	public void setName(String newName)
	{
	      name = newName;	
   	}
	//Geting and setting the address
	public String getAddr()
	{
	      return addr;
        }
	public void setAddr(String newAddr)
	{
	      addr = newAddr;	
   	}
	//Geting and setting the id
        public String getIdNum()
	{
	      	return idNum;
        }
   	public void setIdNum( String newId)
	{
	      idNum = newId;	
   	}
	//Calculating the avg 
	public float calculateAvg(){
		totle=m1+m2+m3;
		avg=totle/3;
		return avg;
		
	}
}





